/**
* 作者: wgx
* 日期: 2024-10-15 14:04:29
* 备注: 干员突破配置表
*/
package com.motu.monstercity.server.game.commondata.partner;

import io.vertx.core.json.JsonObject;

public class PartnerBreakthroughModel {
	protected int id; // 数据库ID
	protected int maxLevel; // 等级上限
	protected String needItem; // 突破消耗的道具 (itemid;num;itemid;num;itemid;num)
	protected int talentAdd; // 资质提升
	protected int childAdd; // 生娃加成百分比

	public PartnerBreakthroughModel() {
	}

	public PartnerBreakthroughModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		maxLevel = obj.containsKey("max_level") ? obj.getInteger("max_level") : 0;
		needItem = obj.containsKey("need_item") ? obj.getString("need_item") : "";
		talentAdd = obj.containsKey("talent_add") ? obj.getInteger("talent_add") : 0;
		childAdd = obj.containsKey("child_add") ? obj.getInteger("child_add") : 0;
	}

	public int getId() {
		return id;
	}

	public int getMaxLevel() {
		return maxLevel;
	}

	public String getNeedItem() {
		return needItem;
	}

	public int getTalentAdd() {
		return talentAdd;
	}

	public int getChildAdd() {
		return childAdd;
	}

}
